package com.example.communist_app_api.service;

import com.example.communist_app_api.db.dto.UserDTO;
import com.example.communist_app_api.db.pojoDto.User;
import com.example.communist_app_api.vo.uniapp.req.UniAppLoginReq;
import com.example.communist_app_api.vo.web.req.AuditPersonalMessageShowReq;
import com.example.communist_app_api.vo.web.req.UserSelectReq;
import com.example.communist_app_api.vo.web.req.UserUpdateMessageReq;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    public User getUserInfo(String username);

    void editPersonMessage(User user);

    User getUserByUserId(Integer id);

    PageInfo<UserDTO> findPage(UserSelectReq req);

    PageInfo<User> findPageByAudit(AuditPersonalMessageShowReq req);

    Boolean updateUserMessage(UserUpdateMessageReq req);

    void deleteUserMessage(Integer userId);

    int getUserByUserName(String name);


    List<User> getAllCommunistMember(Integer organizationId);

    //uniapp 登录
    int login(UniAppLoginReq req);

    User getUserBriefInfoByUserId(Integer id);

    User getNamePhoto(Integer userId);

}
